Class com.symantec.itools.vcafe.openapi.pluginapi.JPluginDialog
All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class com.symantec.itools.vcafe.openapi.pluginapi.JPluginDialog

Object
   |
   +----Component
           |
           +----Container
                   |
                   +----Window
                           |
                           +----Frame
                                   |
                                   +----EmbeddedFrame
                                           |
                                           +----WEmbeddedFrame
                                                   |
                                                   +----BasePluginWindow
                                                           |
                                                           +----BasePluginDialog
                                                                   |
                                                                   +----PluginDialog
                                                                           |
                                                                           +----com.symantec.itools.vcafe.openapi.pluginapi.JPluginDialog

public class JPluginDialog
extends PluginDialog
implements WindowConstants, RootPaneContainer
The API used to integrate a dialog window into Visual Cafe. By default, the application main frame wiindow will be made the parent for this dialog box.

Version:
1.0
Author:
Symantec Internet Tools Division
Since:
VCafe 3.0

Variable Index

 o rootPane
 o rootPaneCheckingEnabled

Constructor Index

 o com.symantec.itools.vcafe.openapi.pluginapi.JPluginDialog()
Create a modal/modeless dialog
 o com.symantec.itools.vcafe.openapi.pluginapi.JPluginDialog(String)
Create a modeless dialog with the given title
 o com.symantec.itools.vcafe.openapi.pluginapi.JPluginDialog(String, boolean)
Create a modal/modeless dialog with the given title
 o com.symantec.itools.vcafe.openapi.pluginapi.JPluginDialog(Window, String, boolean)
Create a modal/modeless dialog with the given title and parent

Method Index

 o addImpl(Component, Object, int)
By default, children may not be added directly to a this component, they must be added to its contentPane instead.
 o createRootPane()
Called by the constructor methods to create the default rootPane.
 o dialogInit()
Called by the constructors to init the JPluginDialog properly.
 o getContentPane()
Returns the contentPane object for this dialog.
 o getDefaultCloseOperation()
Returns the operation which occurs when the user initiates a "close" on this dialog.
 o getGlassPane()
Returns the glassPane object for this dialog.
 o getLayeredPane()
Returns the layeredPane object for this dialog.
 o getRootPane()
Returns the rootPane object for this dialog.
 o isRootPaneCheckingEnabled()
 o processWindowEvent(WindowEvent)
Handles window events depending on the state of the defaultCloseOperation property.
 o setContentPane(Container)
Sets the contentPane property.
 o setDefaultCloseOperation(int)
Sets the operation which will happen by default when the user initiates a "close" on this dialog.
 o setGlassPane(Component)
Sets the glassPane property.
 o setLayeredPane(JLayeredPane)
Sets the layeredPane property.
 o setLayout(LayoutManager)
By default the layout of this component may not be set, the layout of its contentPane should be set instead.
 o setRootPane(JRootPane)
Sets the rootPane property.
 o setRootPaneCheckingEnabled(boolean)
If true then calls to add() and setLayout() will cause an exception to be thrown.

Variables

 o rootPane
protected com.sun.java.swing.JRootPane rootPane

See Also:
getRootPane, setRootPane
 o rootPaneCheckingEnabled
protected boolean rootPaneCheckingEnabled

See Also:
isRootPaneCheckingEnabled, setRootPaneCheckingEnabled

Constructors

 o JPluginDialog
public JPluginDialog()
Create a modal/modeless dialog

Parameters:
modal - true for modal and false for modeless dialog box
 o JPluginDialog
public JPluginDialog(String title)
Create a modeless dialog with the given title

Parameters:
title - The title on the frame
 o JPluginDialog
public JPluginDialog(String title,
                     boolean modal)
Create a modal/modeless dialog with the given title

Parameters:
modal - true for modal and false for modeless dialog box
title - The title on the frame
 o JPluginDialog
public JPluginDialog(Window parent,
                     String title,
                     boolean modal)
Create a modal/modeless dialog with the given title and parent

Parameters:
parent - the owner of the dialog
modal - true for modal and false for modeless dialog box
title - The title on the frame

Methods

 o addImpl
protected void addImpl(Component comp,
                       Object constraints,
                       int index)
By default, children may not be added directly to a this component, they must be added to its contentPane instead. For example:
 thisComponent.getContentPane().add(child)
 
An attempt to add to directly to this component will cause an runtime exception to be thrown. Subclasses can disable this behavior.

Throws: Error
if called with rootPaneChecking true
Overrides:
addImpl in class Container
See Also:
setRootPaneCheckingEnabled
 o createRootPane
protected com.sun.java.swing.JRootPane createRootPane()
Called by the constructor methods to create the default rootPane.

 o dialogInit
protected void dialogInit()
Called by the constructors to init the JPluginDialog properly.

 o getContentPane
public java.awt.Container getContentPane()
Returns the contentPane object for this dialog.

See Also:
setContentPane, getContentPane
 o getDefaultCloseOperation
public int getDefaultCloseOperation()
Returns the operation which occurs when the user initiates a "close" on this dialog.

Returns:
an int indicating the window-close operation
See Also:
setDefaultCloseOperation
 o getGlassPane
public java.awt.Component getGlassPane()
Returns the glassPane object for this dialog.

See Also:
setGlassPane, getGlassPane
 o getLayeredPane
public com.sun.java.swing.JLayeredPane getLayeredPane()
Returns the layeredPane object for this dialog.

See Also:
setLayeredPane, getLayeredPane
 o getRootPane
public com.sun.java.swing.JRootPane getRootPane()
Returns the rootPane object for this dialog.

See Also:
setRootPane, getRootPane
 o isRootPaneCheckingEnabled
protected boolean isRootPaneCheckingEnabled()

Returns:
true if add and setLayout should be checked
See Also:
addImpl, setLayout, setRootPaneCheckingEnabled
 o processWindowEvent
protected void processWindowEvent(WindowEvent e)
Handles window events depending on the state of the defaultCloseOperation property.

Overrides:
processWindowEvent in class Window
See Also:
setDefaultCloseOperation
 o setContentPane
public void setContentPane(Container contentPane)
Sets the contentPane property. This method is called by the constructor.

Parameters:
contentPane - the contentPane object for this dialog
Throws: IllegalComponentStateException
(a runtime exception) if the content pane parameter is null
See Also:
getContentPane, setContentPane
 o setDefaultCloseOperation
public void setDefaultCloseOperation(int operation)
Sets the operation which will happen by default when the user initiates a "close" on this dialog. The possible choices are:

The value is set to HIDE_ON_CLOSE by default.

See Also:
addWindowListener, getDefaultCloseOperation
 o setGlassPane
public void setGlassPane(Component glassPane)
Sets the glassPane property. This method is called by the constructor.

Parameters:
glassPane - the glassPane object for this dialog
See Also:
getGlassPane, setGlassPane
 o setLayeredPane
public void setLayeredPane(JLayeredPane layeredPane)
Sets the layeredPane property. This method is called by the constructor.

Parameters:
layeredPane - the layeredPane object for this dialog
Throws: IllegalComponentStateException
(a runtime exception) if the layered pane parameter is null
See Also:
getLayeredPane, setLayeredPane
 o setLayout
public void setLayout(LayoutManager manager)
By default the layout of this component may not be set, the layout of its contentPane should be set instead. For example:
 thisComponent.getContentPane().setLayout(new BorderLayout())
 
An attempt to set the layout of this component will cause an runtime exception to be thrown. Subclasses can disable this behavior.

Throws: Error
if called with rootPaneChecking true
Overrides:
setLayout in class Container
See Also:
setRootPaneCheckingEnabled
 o setRootPane
protected void setRootPane(JRootPane root)
Sets the rootPane property. This method is called by the constructor.

Parameters:
root - the rootPane object for this dialog
See Also:
getRootPane
 o setRootPaneCheckingEnabled
protected void setRootPaneCheckingEnabled(boolean enabled)
If true then calls to add() and setLayout() will cause an exception to be thrown.

See Also:
addImpl, setLayout, isRootPaneCheckingEnabled

All Packages  Class Hierarchy  This Package  Previous  Next  Index